$OpenBSD: patch-winpr_libwinpr_winsock_winsock_c,v 1.1 2015/11/07 05:55:08 ajacoutot Exp $
--- winpr/libwinpr/winsock/winsock.c.orig	Thu Oct 29 07:45:37 2015
+++ winpr/libwinpr/winsock/winsock.c	Thu Oct 29 07:52:35 2015
@@ -435,9 +435,11 @@ int WSAGetLastError(void)
 			break;
 #endif
 
+#ifdef EPROTO
 		case EPROTO:
 			iError = WSAECONNRESET;
 			break;
+#endif
 	}
 
 	/**
